#include<stdio.h>
#include<conio.h>
void main()
{
	int i, sum = 0, mar[7];
	float avg;

	clrscr();

	for(i = 0; i <= 6; i++)
	{
		printf("\n\n\t\tEnter Marks: ");
		scanf("%d", &mar[i]);
	}

	for(i = 0; i <= 6; i++)
	{
		sum = sum + mar[i];
	}

	avg = sum / 7.0;
	printf("\n\n\t\tThe Sum = %d", sum);

	printf("\n\n\t\tThe Average = %f ", avg);
	getch();

}